package com.hongdee.insurance.order.entity;

import com.hongdee.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * Created by Mr. Xu on 2017/4/27.
 * 保险单
 */
@Entity
@Table(name = "T_Insurance_Order")
public class TInsuranceOrder extends BaseEntity {

    // 返现费率
    @Column(name = "back_commission", length = 32, columnDefinition = " VARCHAR(32) COMMENT '返现费率' ")
    private String backCommission;

    public String getBackCommission() {
        return backCommission;
    }

    public void setBackCommission(String backCommission) {
        this.backCommission = backCommission;
    }

    /**
     * 公司ID
     */
    @Column(name = "company_id", length = 32, columnDefinition = " VARCHAR(32) COMMENT '公司ID' ")
    private String CompanyId;
    /**
     * 车辆ID
     */
    @Column(name = "car_id", length = 32, columnDefinition = " VARCHAR(32) COMMENT '车辆ID' ")
    private String carId;
    /**
     * 保险公司id
     */
    @Column(name = "insurance_company_id", length = 32, columnDefinition = " VARCHAR(32) COMMENT '保险公司id' ")
    private String insuranceCompanyId;
    /**
     * 被保险人
     */
    @Column(name = "insured", length = 32, columnDefinition = " VARCHAR(32) COMMENT '被保险人' ")
    private String insured;
    /**
     * 联系电话
     */
    @Column(name = "contact_phone", length = 32, columnDefinition = " VARCHAR(32) COMMENT '联系电话' ")
    private String contactPhone;
    /**
     * 出单日期
     */
    @Column(name = "out_order_date", length = 32, columnDefinition = " VARCHAR(32) COMMENT '出单日期' ")
    private String outOrderDate;
    /**
     * 交款方式
     */
    @Column(name = "pay_type", length = 32, columnDefinition = " VARCHAR(32) COMMENT '交款方式' ")
    private String payType;
    /**
     * 交款人
     */
    @Column(name = "pay_people", length = 32, columnDefinition = " VARCHAR(32) COMMENT '交款人' ")
    private String payPeople;
    /**
     * 交款账号
     */
    @Column(name = "pay_num", length = 32, columnDefinition = " VARCHAR(32) COMMENT '交款账号' ")
    private String payNum;

    @Column(name = "back_Price", length = 100, columnDefinition = " VARCHAR(100) COMMENT '返现金额' ")
    private String backPrice;

    /**
     * 返现状态
     */
    @Column(name = "back_type", length = 1, columnDefinition = " VARCHAR(1) COMMENT '返现状态 0 初始默认未返现状态  1 确认返现状态' ")
    private String backType;
    /**
     * 返现日期
     */
    @Column(name = "back_date", length = 32, columnDefinition = " VARCHAR(32) COMMENT '返现日期' ")
    private String backDate;
    /**
     * 报价单ID
     */
    @Column(name = "quotation_id", length = 32, columnDefinition = " VARCHAR(32) COMMENT '报价单ID' ")
    private String quotationId;
    /**
     * 保险专员名称 //销售专员
     */
    @Column(name = "insurance_commissioner_name", length = 32, columnDefinition = " VARCHAR(32) COMMENT '保险专员名称' ")
    private String insuranceCommissionerName;

    /**
     * 推荐人
     */
    @Column(name = "referee_name", length = 32, columnDefinition = " VARCHAR(32) COMMENT '推荐人' ")
    private String refereeName;

    /**
     * 保险专员名称 //销售专员
     */
    @Column(name = "insurance_commissioner_id", length = 36, columnDefinition = " VARCHAR(36) COMMENT '保险专员ID' ")
    private String insuranceCommissionerId;

    /**
     * 基盘类别
     */
    @Column(name = "base_type", length = 32, columnDefinition = " VARCHAR(32) COMMENT '基盘类别' ")
    private String baseType;
    /**
     * 优惠信息
     */
    @Column(name = "discount_info", length = 200, columnDefinition = " VARCHAR(200) COMMENT '优惠信息' ")
    private String discountInfo;

    /**
     *折扣抵现信息
     */
    @Column(name = "distcount",length = 32,columnDefinition = "VARCHAR(32) COMMENT '折扣'")
    private String discount;

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    /**
     * 备注
     */
    @Column(name = "remark", length = 255, columnDefinition = " VARCHAR(255) COMMENT '备注' ")
    private String remark;
    /**
     * 退单状态
     */
    @Column(name = "return_type", length = 1, columnDefinition = " VARCHAR(1) COMMENT '退单状态 0 默认 1 退保 2已退保' ")
    private String returnType;
    /**
     * 退单日期
     */
    @Column(name = "return_date", length = 32, columnDefinition = " VARCHAR(32) COMMENT '退单日期' ")
    private String returnDate;

    @Column(name = "commission_type", length = 32, columnDefinition = " VARCHAR(32) COMMENT '佣金审核状态默认 -1待提交   0 未审核 1 审核通过 2审核未通过  3审核未通过，已修改' ")
    private String commissionType;

    @Column(name = "commission_date", length = 32, columnDefinition = " VARCHAR(32) COMMENT '佣金佣金审核日期' ")
    private String commissionDate;

    @Column(name = "commission_remark", length = 200, columnDefinition = " VARCHAR(200) COMMENT '佣金审核备注' ")
    private String commissionRemark;

    @Column(name = "price_warning_type",length = 1, columnDefinition = "VARCHAR(1) COMMENT '保费预警状态 0 未审核过 1审核通过 超出最大或最小值'")
    private String priceWarningType;

    @Column(name = "iscompulsoryinsurance",length = 32,columnDefinition = "VARCHAR(32) COMMENT '是否单交强  0单交强 1单商业 2交强 商业'")
    private String iscompulsoryinsurance;

    @Column(name = "insurance_type",length = 32,columnDefinition = "VARCHAR(32) COMMENT '保单类别 0 正常 1 追加 2 退单'")
    public String insuranceType;

    @Column(name = "insurance_id",length = 36,columnDefinition = "VARCHAR(36) COMMENT '如追加、退单时填写追加退单引用的保单号'")
    public String insuranceId;

    @Column(name = "vin", length = 32, columnDefinition = " VARCHAR(32) COMMENT '车架号' ")
    private String vin;
    @Column(name = "plate_num", length = 32, columnDefinition = " VARCHAR(32) COMMENT '车牌号' ")
    private String plateNum;

    @Column(name = "continuous", length = 32, columnDefinition = " VARCHAR(32) COMMENT '联保标识 true 联 false 空非联保' ")
    private String continuous;

    @Column(name = "store_name", length = 64, columnDefinition = "VARCHAR(63) COMMENT '门店'")
    private String storeName;

    @Column(name = "store_p_area", length = 64, columnDefinition = "VARCHAR(64) COMMENT '大区域'")
    private String storeParea;

    @Column(name = "store_area", length = 64, columnDefinition = "VARCHAR(64) COMMENT '区域'")
    private String storeArea;

    @Column(name = "store_area_code", length = 64, columnDefinition = "VARCHAR(64) COMMENT '大区域编码'")
    private String storeAreaCode;

    @Column(name = "store_p_area_code", length = 64, columnDefinition = "VARCHAR(64) COMMENT '大区域编码'")
    private String storePareaCode;

    @Column(name = "store_code", length = 64, columnDefinition = "VARCHAR(63) COMMENT '门店编码'")
    private String storeCode;

    @Column(name = "store_chanel", length = 64, columnDefinition = "VARCHAR(64) COMMENT '渠道分类'")
    private String storeChanel;



    /**
     * 投保类别(新保sb 续保 xb)
     */
    @Column(name = "insure_type", length = 10, columnDefinition = " VARCHAR(10) COMMENT '投保类别' ")
    private String insureType;

    @Column(name = "status", length = 10, columnDefinition = " VARCHAR(10) COMMENT '状态' ")
    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 追加费率
     */
    @Transient
    private String addCommission;

    public String getAddCommission() {
        return addCommission;
    }

    public void setAddCommission(String addCommission) {
        this.addCommission = addCommission;
    }

    @Transient
    private String addCommissionPrice;

    public String getAddCommissionPrice() {
        return addCommissionPrice;
    }

    public void setAddCommissionPrice(String addCommissionPrice) {
        this.addCommissionPrice = addCommissionPrice;
    }

    /**
     * 商业险合同号
     */
    @Transient
    private String commercialinsuranceNum;
    /**
     * 商业险起始日期
     */
    @Transient
    private String commercialinsuranceStartDate;

    /**
     * 商业险终止日期
     */
    @Transient
    private String commercialinsuranceStopDate;
    /**
     * 商业险成交价格
     */
    @Transient
    private String commercialinsurancePrice;

    //商业险佣金
    @Transient
    private String commissionSy;

    //商业险佣金
    @Transient
    private String commissionSyTemp;

    //商业险启用临时佣金
    @Transient
    private String isCommissionSyTemp;

    /**
     * 佣金说明
     */
    @Transient
    private String commissionSyExp;

    /**
     * 佣金设置商业ID
     */
    @Transient
    private String commissionSyId;

    /**
     * 佣金设置交强ID
     */
    @Transient
    private String commissionJqId;

    /**
     * 佣金设置车船税ID
     */
    @Transient
    private String commissionCcsId;
    /**
     * 交强险合同号
     */
    @Transient
    private String compulsoryNum;
    /**
     * 交强险起始日期
     */
    @Transient
    private String compulsoryStartDate;
    /**
     * 交强险终止日期
     */
    @Transient
    private String compulsoryStopDate;
    /**
     * 交强险成交价格
     */
    @Transient
    private String compulsoryPrice;


    //交强险佣金
    @Transient
    private String commissionJq;

    @Transient
    private String commissionJqTemp;

    //交强险启用临时佣金
    @Transient
    private String isCommissionJqTemp;

    /**
     * 交强险佣金说明
     */
    @Transient
    private String commissionJqExp;

    /**
     * 车船税
     */

    @Transient
    private String commissionCcsTemp; // 车船税临时费率

    @Transient
    private String commissionCcs; // 车船税

    @Transient
    private String commissionCcsExp; // 车船税临时费率说明

    @Transient
    private String isCommissionCcsTemp; // 是否启用车船税临时费率

    public String getCommissionCcsId() {
        return commissionCcsId;
    }

    public void setCommissionCcsId(String commissionCcsId) {
        this.commissionCcsId = commissionCcsId;
    }

    public String getCommissionCcsTemp() {
        return commissionCcsTemp;
    }

    public void setCommissionCcsTemp(String commissionCcsTemp) {
        this.commissionCcsTemp = commissionCcsTemp;
    }

    public String getCommissionCcs() {
        return commissionCcs;
    }

    public void setCommissionCcs(String commissionCcs) {
        this.commissionCcs = commissionCcs;
    }

    public String getCommissionCcsExp() {
        return commissionCcsExp;
    }

    public void setCommissionCcsExp(String commissionCcsExp) {
        this.commissionCcsExp = commissionCcsExp;
    }

    public String getIsCommissionCcsTemp() {
        return isCommissionCcsTemp;
    }

    public void setIsCommissionCcsTemp(String isCommissionCcsTemp) {
        this.isCommissionCcsTemp = isCommissionCcsTemp;
    }

    public String getCommissionType() {
        return commissionType;
    }

    public void setCommissionType(String commissionType) {
        this.commissionType = commissionType;
    }

    public String getCommissionDate() {
        return commissionDate;
    }

    public void setCommissionDate(String commissionDate) {
        this.commissionDate = commissionDate;
    }

    /**
     * 新车属性 用于更新车主档案
     */
    @Transient
    private String carProperty;

    /**
     * 销售属性 用于更新客户档案
     */
    @Transient
    private String salesProperty;


    public String getCommissionSy() {
        return commissionSy;
    }

    public void setCommissionSy(String commissionSy) {
        this.commissionSy = commissionSy;
    }

    public String getIsCommissionSyTemp() {
        return isCommissionSyTemp;
    }

    public void setIsCommissionSyTemp(String isCommissionSyTemp) {
        this.isCommissionSyTemp = isCommissionSyTemp;
    }

    public String getCommissionSyExp() {
        return commissionSyExp;
    }

    public void setCommissionSyExp(String commissionSyExp) {
        this.commissionSyExp = commissionSyExp;
    }

    public String getCommissionJq() {
        return commissionJq;
    }

    public void setCommissionJq(String commissionJq) {
        this.commissionJq = commissionJq;
    }

    public String getIsCommissionJqTemp() {
        return isCommissionJqTemp;
    }

    public void setIsCommissionJqTemp(String isCommissionJqTemp) {
        this.isCommissionJqTemp = isCommissionJqTemp;
    }

    public String getCommissionJqExp() {
        return commissionJqExp;
    }

    public void setCommissionJqExp(String commissionJqExp) {
        this.commissionJqExp = commissionJqExp;
    }

    public String getReturnType() {
        return returnType;
    }

    public void setReturnType(String returnType) {
        this.returnType = returnType;
    }

    public String getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(String returnDate) {
        this.returnDate = returnDate;
    }

    public String getCompanyId() {
        return CompanyId;
    }

    public void setCompanyId(String companyId) {
        CompanyId = companyId;
    }

    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId;
    }

    public String getInsuranceCompanyId() {
        return insuranceCompanyId;
    }

    public void setInsuranceCompanyId(String insuranceCompanyId) {
        this.insuranceCompanyId = insuranceCompanyId;
    }

    public String getInsured() {
        return insured;
    }

    public void setInsured(String insured) {
        this.insured = insured;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getOutOrderDate() {
        return outOrderDate;
    }

    public void setOutOrderDate(String outOrderDate) {
        this.outOrderDate = outOrderDate;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayPeople() {
        return payPeople;
    }

    public void setPayPeople(String payPeople) {
        this.payPeople = payPeople;
    }

    public String getPayNum() {
        return payNum;
    }

    public void setPayNum(String payNum) {
        this.payNum = payNum;
    }

    public String getCommercialinsuranceNum() {
        return commercialinsuranceNum;
    }

    public void setCommercialinsuranceNum(String commercialinsuranceNum) {
        this.commercialinsuranceNum = commercialinsuranceNum;
    }

    public String getCommercialinsuranceStartDate() {
        return commercialinsuranceStartDate;
    }

    public void setCommercialinsuranceStartDate(String commercialinsuranceStartDate) {
        this.commercialinsuranceStartDate = commercialinsuranceStartDate;
    }

    public String getCommercialinsuranceStopDate() {
        return commercialinsuranceStopDate;
    }

    public void setCommercialinsuranceStopDate(String commercialinsuranceStopDate) {
        this.commercialinsuranceStopDate = commercialinsuranceStopDate;
    }

    public String getCommercialinsurancePrice() {
        return commercialinsurancePrice;
    }

    public void setCommercialinsurancePrice(String commercialinsurancePrice) {
        this.commercialinsurancePrice = commercialinsurancePrice;
    }


    public String getCompulsoryNum() {
        return compulsoryNum;
    }

    public void setCompulsoryNum(String compulsoryNum) {
        this.compulsoryNum = compulsoryNum;
    }

    public String getCompulsoryStartDate() {
        return compulsoryStartDate;
    }

    public void setCompulsoryStartDate(String compulsoryStartDate) {
        this.compulsoryStartDate = compulsoryStartDate;
    }

    public String getCompulsoryStopDate() {
        return compulsoryStopDate;
    }

    public void setCompulsoryStopDate(String compulsoryStopDate) {
        this.compulsoryStopDate = compulsoryStopDate;
    }

    public String getCompulsoryPrice() {
        return compulsoryPrice;
    }

    public void setCompulsoryPrice(String compulsoryPrice) {
        this.compulsoryPrice = compulsoryPrice;
    }


    public String getBackType() {
        return backType;
    }

    public void setBackType(String backType) {
        this.backType = backType;
    }

    public String getBackDate() {
        return backDate;
    }

    public void setBackDate(String backDate) {
        this.backDate = backDate;
    }

    public String getQuotationId() {
        return quotationId;
    }

    public void setQuotationId(String quotationId) {
        this.quotationId = quotationId;
    }
//
//    public String getCommissionRate() {
//        return commissionRate;
//    }
//
//    public void setCommissionRate(String commissionRate) {
//        this.commissionRate = commissionRate;
//    }
//
//    public String getCommission() {
//        return commission;
//    }
//
//    public void setCommission(String commission) {
//        this.commission = commission;
//    }

    public String getCarProperty() {
        return carProperty;
    }

    public void setCarProperty(String carProperty) {
        this.carProperty = carProperty;
    }

    public String getSalesProperty() {
        return salesProperty;
    }

    public void setSalesProperty(String salesProperty) {
        this.salesProperty = salesProperty;
    }

    public String getInsuranceCommissionerName() {
        return insuranceCommissionerName;
    }

    public void setInsuranceCommissionerName(String insuranceCommissionerName) {
        this.insuranceCommissionerName = insuranceCommissionerName;
    }

    public String getBaseType() {
        return baseType;
    }

    public void setBaseType(String baseType) {
        this.baseType = baseType;
    }

    public String getDiscountInfo() {
        return discountInfo;
    }

    public void setDiscountInfo(String discountInfo) {
        this.discountInfo = discountInfo;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCommissionSyTemp() {
        return commissionSyTemp;
    }

    public void setCommissionSyTemp(String commissionSyTemp) {
        this.commissionSyTemp = commissionSyTemp;
    }

    public String getCommissionJqTemp() {
        return commissionJqTemp;
    }

    public void setCommissionJqTemp(String commissionJqTemp) {
        this.commissionJqTemp = commissionJqTemp;
    }

    public String getBackPrice() {
        return backPrice;
    }

    public void setBackPrice(String backPrice) {
        this.backPrice = backPrice;
    }

    public String getPriceWarningType() {
        return priceWarningType;
    }

    public void setPriceWarningType(String priceWarningType) {
        this.priceWarningType = priceWarningType;
    }

    public String getInsureType() {
        return insureType;
    }

    public void setInsureType(String insureType) {
        this.insureType = insureType;
    }

    public String getCommissionSyId() {
        return commissionSyId;
    }

    public void setCommissionSyId(String commissionSyId) {
        this.commissionSyId = commissionSyId;
    }

    public String getCommissionJqId() {
        return commissionJqId;
    }

    public void setCommissionJqId(String commissionJqId) {
        this.commissionJqId = commissionJqId;
    }

    public String getIscompulsoryinsurance() {
        return iscompulsoryinsurance;
    }

    public void setIscompulsoryinsurance(String iscompulsoryinsurance) {
        this.iscompulsoryinsurance = iscompulsoryinsurance;
    }

    public String getInsuranceId() {
        return insuranceId;
    }

    public void setInsuranceId(String insuranceId) {
        this.insuranceId = insuranceId;
    }

    public String getContinuous() {
        return continuous;
    }

    public String getInsuranceCommissionerId() {
        return insuranceCommissionerId;
    }

    public void setInsuranceCommissionerId(String insuranceCommissionerId) {
        this.insuranceCommissionerId = insuranceCommissionerId;
    }

    public void setContinuous(String continuous) {
        this.continuous = continuous;
    }

    public String getStoreAreaCode() {
        return storeAreaCode;
    }

    public void setStoreAreaCode(String storeAreaCode) {
        this.storeAreaCode = storeAreaCode;
    }

    public String getStorePareaCode() {
        return storePareaCode;
    }

    public void setStorePareaCode(String storePareaCode) {
        this.storePareaCode = storePareaCode;
    }

    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getStoreParea() {
        return storeParea;
    }

    public void setStoreParea(String storeParea) {
        this.storeParea = storeParea;
    }

    public String getStoreArea() {
        return storeArea;
    }

    public void setStoreArea(String storeArea) {
        this.storeArea = storeArea;
    }

    public String getStoreChanel() {
        return storeChanel;
    }

    public void setStoreChanel(String storeChanel) {
        this.storeChanel = storeChanel;
    }

    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    public String getPlateNum() {
        return plateNum;
    }

    public void setPlateNum(String plateNum) {
        this.plateNum = plateNum;
    }

    public String getInsuranceType() {
        return insuranceType;
    }

    public void setInsuranceType(String insuranceType) {
        this.insuranceType = insuranceType;
    }

    public String getCommissionRemark() {
        return commissionRemark;
    }

    public void setCommissionRemark(String commissionRemark) {
        this.commissionRemark = commissionRemark;
    }

    public String getRefereeName() {
        return refereeName;
    }

    public void setRefereeName(String refereeName) {
        this.refereeName = refereeName;
    }
}
